<?php

namespace App\Http\Controllers\Admin;

use App\Http\Query\CategoryQuery;
use app\Model\Base;
use app\Model\OrderModel;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
use Log;
use function MongoDB\BSON\toJSON;
use SplFileObject;

class JapanInvoiceEditController extends Controller

{

    function invoice_edit(Request $request)
    {
        $order_id = $request->input('order_id');
        $mo = new \App\Model\OrderModel();
        $data = $mo->getUserOrderInfo($order_id);
        $data['order_id'] = $order_id;
        return view('warehouse.invoice_edit', $data); // 返回视图
    }

}
